package com.wxw.BaseLibrary.http.soap;

import com.wxw.BaseLibrary.http.*;

/**
 * Created by david on 2016/5/11.
 */
public class SoapRequestTaskFactory<T> implements IRequestTaskFactory {
    private Request<T> request = null;
    public SoapRequestTaskFactory(Request<T> request) {
        this.request=request;
    }
    @Override
    public IRequestTask createRequestTask(RequestManager manager, RequestMessage message) {
        IRequestTask task = new SoapRequestTask<T>(request);
        task.init(manager, message);
        return task;
    }
}
